import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'

<Tabs
  defaultValue="vcluster"
  values={[
    { label: 'vcluster', value: 'vcluster', },
    { label: 'helm', value: 'helm', },
    { label: 'kubectl', value: 'kubectl', },
  ]
}>
<TabItem value="vcluster">

Create a `values.yaml` file with the following lines:

```
openshift
  enable: true
```

Then create the vcluster with the following command:
```
vcluster create -f values.yaml
```

</TabItem>
<TabItem value="helm">

Update the `vcluster.yaml` file described in the [deployment guide](../getting-started/deployment). 

You will need to add the `openshift` block as shown below:

```yaml
openshift
  enable: true
```

Then, install helm chart using `vcluster.yaml` for chart values as described in the [deployment guide](../getting-started/deployment). 

</TabItem>
<TabItem value="kubectl">

Update the `vcluster-1.yaml` file from the previous steps. 

You will need to add a new rule as shown below:

```yaml {7-9}
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: vcluster-1
rules:
  ...
  - apiGroups: [""]
    resources: ["endpoints/restricted"]
    verbs: ["create"]
```

```bash
kubectl apply -f vcluster-1.yaml -n host-namespace-1
```
</TabItem>
</Tabs>